package com.mall.db.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_coupon_user")
public class CouponUser extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 拥有优惠券的用户Id
     * */
    private String userId;

    /**
     * 优惠券父Id
     * */
    private String pid;

    /**
     * 优惠券使用时间
     * */
    private Date useTime;

    /**
     * 订单Id
     * */
    private String orderId;

    /**
     * 优惠券状态
     * */
    private Integer state;
}
